<template>
	<view>
		<view class="main">
			<view class="main_image">
				<image class="img" :src="image" mode=""></image>
			</view>
			<view class="main_btn">
				<u-button type="primary" @click="goEmpower" text="登录"></u-button>
			</view>
			<view class="main_patient" @click="handleGoPatient">
				就诊人管理
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				image: '',
				token: ""
			};
		},
		methods: {
			// 登录
			goEmpower() {
				uni.navigateTo({
					url: '/pages/empower/empower'
				})
			},
			// 就诊人管理
			handleGoPatient() {
				uni.navigateTo({
					url: '/pages/patientMan/patientMan'
				})
			}
		},
		created() {
			this.image = uni.getStorageSync('image')
			this.token = uni.getStorageSync('token')
		}
	}
</script>

<style lang="scss">
	.main_image {
		width: 750rpx;
		height: 200rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.img {
		height: 100rpx;
		width: 100rpx;
		border-radius: 50%;
	}

	.main_patient {
		width: 750rpx;
		height: 100rpx;
		line-height: 100rpx;
		border-radius: 20rpx;
		background: skyblue;
		text-align: center;
	}
</style>